<!DOCTYPE html>
<!-- saved from url=(0082)http://www.position-relative.net/creation/formValidator/demos/demoValidators.html# -->
<html>
<head>
  <script>
      jQuery(document).ready(function () {
          // binds form submission and fields to the validation engine
          jQuery("#formID").validationEngine();
      });
  </script>
</head>
<body>
<div class="overlayu"></div>
<form id="formID" class="loginu" method="post">
  <div class="loginu-header">
    <span style="font-size: 15px">Vui lòng điền thông tin: </span><br>
    <%= flash[:message] %>
  </div>
  <div class="loginu-content">
    <table>
      <tr>
        <td>Họ và tên:</td>
        <td><label>
          <input type="text" name="name_ct" class="validate[required] text-input"/>
        </label></td>
      </tr>
      <tr>
        <td>Điện thoại:</td>
        <td><label>
          <input type="text" name="phone_ct" class="validate[required,custom[phone]] text-input">
        </label></td>
      </tr>
      <tr>
        <td>Địa chỉ:</td>
        <td><label>
          <input type="text" name="adress_ct"/>
        </label></td>
      </tr>
      <tr>
        <td>E-mail:</td>
        <td><label>
          <input type="text" name="email_ct" class="validate[custom[email]] text-input"/>
        </label></td>
      </tr>
      <tr>
        <td>Tên đăng nhập:</td>
        <td>
          <label>
            <input type="text" name="username_ct" class="validate[required,custom[onlyLetterNumber],maxSize[20],ajax[ajaxUserCall]] text-input"/>
          </label>
        </td>
      </tr>
      <tr>
        <td>Mật khẩu:</td>
        <td>
          <label>
            <input type="password" name="password_ct" class="validate[required] text-input"/>
          </label>
        </td>
      </tr>
      <tr>
        <td><label for="pass">Nhập lại mật khẩu: &nbsp </label></td>
        <td>
          <label>
            <input type="password" name="password_cf_ct" class="validate[required,equals[user_password]] text-input"/>
          </label>
      </tr>
      <tr>
        <td><%= button_to 'ĐĂNG KÝ', {:controller => 'user', :action => 'create', :method => :post}, {:class => "loginsubmitu"} %></td>
      </tr>
    </table>
  </div>
</form>

</body>
</html>